
[stepper_z]                                 # Left Z steper
step_pin:                       PD10
dir_pin:                        PC16
enable_pin:                     !PC18
microsteps:                     256         # ?
#step_distance:                  0.0125
rotation_distance:              2           # ?
full_steps_per_rotation:        200         # for 0.9° motors - 400
endstop_pin:                    ^PD1        # Z-MAX - PC2; Z-MIN - PD1
position_endstop:               205         # ?
position_max:                   205         # ?
position_min:                   -40         # ?
homing_speed:                   6          # if T8 P2L2 then speed max 5-7. 12 -- on age of posable
homing_retract_dist:            3
second_homing_speed:            1

[tmc2130 stepper_z]
cs_pin:                         PD4
#spi_speed:                      100000
#spi_bus:                        spi0
interpolate:                    False
run_current:                    0.85        # Imax * squart(2) * 80%
hold_current:                   0.425       # ~~ run_current/2
sense_resistor:                 0.110
stealthchop_threshold:          999999
#driver_IHOLDDELAY: 8
#driver_TPOWERDOWN: 0
#driver_TBL: 1
#driver_TOFF: 4
#driver_HEND: 7
#driver_HSTRT: 0
#driver_PWM_AUTOSCALE: True
#driver_PWM_FREQ: 1
#driver_PWM_GRAD: 4
#driver_PWM_AMPL: 128
driver_SGT:                     -64         # MAX = -2; MIN = 7
#diag0_pin:
#diag1_pin:
